﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    enum FoodType
    {
        面条,
        汤
    }
    class CookRobot : Robot
    {
        private FoodType type;
        public FoodType Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
      


        public CookRobot(string name, FoodType type) : base(name)
        {
            this.type = type;
        }
        public CookRobot() {

        }
      
        public override void Working()
        {
            Console.WriteLine("我是{0},我会做{1}", base.Name, this.type);
        }
    }
}